package com.ruoyi.sys.security.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡更计划对象 tb_patrolling_plan
 * 
 * @author iuxin
 * @date 2022-05-25
 */
public class TbPatrollingPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long ppId;

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String ppPlan;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ppEffectiveDate;

    /** 巡更时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "巡更时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ppWatchDate;

    /** 巡更时间（周一、二、三的10点-11点之间进行巡更） */
    @Excel(name = "巡更时间", readConverterExp = "周=一、二、三的10点-11点之间进行巡更")
    private String ppDay;

    /** 巡更人员编号 连接tb__patrolling_personnel表 */
    @Excel(name = "巡更人员编号 连接tb__patrolling_personnel表")
    private Long ppPpId;

    /** 巡更线路 连接tb_patrolling_route表 */
    @Excel(name = "巡更线路 连接tb_patrolling_route表")
    private Long ppPrId;

    public void setPpId(Long ppId) 
    {
        this.ppId = ppId;
    }

    public Long getPpId() 
    {
        return ppId;
    }
    public void setPpPlan(String ppPlan) 
    {
        this.ppPlan = ppPlan;
    }

    public String getPpPlan() 
    {
        return ppPlan;
    }
    public void setPpEffectiveDate(Date ppEffectiveDate) 
    {
        this.ppEffectiveDate = ppEffectiveDate;
    }

    public Date getPpEffectiveDate() 
    {
        return ppEffectiveDate;
    }
    public void setPpWatchDate(Date ppWatchDate) 
    {
        this.ppWatchDate = ppWatchDate;
    }

    public Date getPpWatchDate() 
    {
        return ppWatchDate;
    }
    public void setPpDay(String ppDay) 
    {
        this.ppDay = ppDay;
    }

    public String getPpDay() 
    {
        return ppDay;
    }
    public void setPpPpId(Long ppPpId) 
    {
        this.ppPpId = ppPpId;
    }

    public Long getPpPpId() 
    {
        return ppPpId;
    }
    public void setPpPrId(Long ppPrId) 
    {
        this.ppPrId = ppPrId;
    }

    public Long getPpPrId() 
    {
        return ppPrId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ppId", getPpId())
            .append("ppPlan", getPpPlan())
            .append("ppEffectiveDate", getPpEffectiveDate())
            .append("ppWatchDate", getPpWatchDate())
            .append("ppDay", getPpDay())
            .append("ppPpId", getPpPpId())
            .append("ppPrId", getPpPrId())
            .toString();
    }
}
